package com.leyou.auth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author 虎哥
 */
@Data
@ConfigurationProperties(prefix = "ly.auth")
public class ClientProperties {
    /**
     * 客户端id
     */
    private String clientId;
    /**
     * 客户端秘钥
     */
    private String secret;
    /**
     * 要拦截的路径
     */
    private List<String> includePathPatterns;
    /**
     * 要放行的路径
     */
    private List<String> excludePathPatterns;
    /**
     * 是否开启登录拦截功能
     */
    private Boolean enable = false;
}
